Skip to content

S16: canvas labels for the remaining comparison examples (part of #63, depends on #109) - #112

Open
DennisSmolek wants to merge 3 commits into
mainfrom
issue-63-canvas-labels-rest
Open

DennisSmolek wants to merge 3 commits into
mainfrom
issue-63-canvas-labels-rest

Conversation

@DennisSmolek

@DennisSmolek DennisSmolek commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Part of #63. Depends on #109 (this branch is cut from it; merge #109 first, or retarget after it lands).

Uses canvasLabels from #109 on the remaining examples where a label helps the comparison or mode, in the catalog briefs' own words. Labels name what is drawing: for pages that rebuild a kernel or scene, the label changes when the rebuild lands, not when the control moves.

Example Label
One-bounce shading Mode: Full (diffuse + GGX) / Lambert / Flat
Megakernel or wavefront Scheduler: Megakernel / Scheduler: Wavefront, refill batch, sort material
BVH formats Node format: Quantized (default) / f32 / BVH4 / CWBVH8
Alpha cutouts Shadow rays: Exact (reference) etc.
Many lights Light selection: pbrt (default) · ReSTIR DI on/off
Spectral Spectral: on / Spectral: off (RGB transport)
MaterialX <document> · Approach: Codegen / Bake (constants documents say so)
Real-time frames <view> · Sampler: Blue noise (1 spp per frame)
Convergence which image the canvas shows: the reference, then each sampler at its checkpoint

Not labelled, on purpose: Classroom (the hero page already tags its left/right halves), Hello, glTF models, Material explorer, Fog and clouds, Cloud, GPU report: one thing on screen, nothing to compare, and the pane controls already name the mode.

Verified

  • pnpm typecheck: no new errors (only the known @pmndrs/vdb ones in bench).
  • vitest run examples/catalog.test.ts: 24 passed.
  • Real-Chrome smoke (--gpu, all 9 touched slugs): 9/9 pass. Canvas readback vs the base branch: identical means/std on schedulers, bvh, cutouts, materialx, convergence; shade, spectral, frame and lights differ only in the accumulated frame count at capture time (labels are DOM, outside the canvas).
  • Screenshots read back at 1000x600 with the info panel closed: pills legible on light, dark and black backgrounds. With the info panel open (first visit) labels now sit beside it (see update below).

Update: canvas-labels.ts now measures the open info panel (.ex-info) and places labels beside it (centred in the visible canvas, or starting at its edge and leaving room for the controls pane); re-placed on open/close and resize. At phone width the panel spans the screen, so labels stay put (they show once it is closed). Re-checked first-visit screenshots and smoke on schedulers, materialx, ao.

Dev-GPU load was ~28 during the runs: correctness only, no timings.

🤖 Generated with Claude Code

DennisSmolek and others added 3 commits December 2, 2026 03:12
…not in the image)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…dulers, bvh, cutouts, lights, spectral, materialx, frame, convergence)

Part of #63. Depends on #109.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ced on open/close and resize)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant